package com.kk.adapter.interfaceadapter;


/**
 * @author 王志强
 * @date 2021-12-16
 */
public class Client {
    public static void main(String[] args) {

        new AbstractVoltage() {
            @Override
            public int output20V() {
                int v = 20;
                System.out.println("=======接口适配器模式========");
                System.out.println(v + "V 电压输出");
                return v;
            }
        }.output20V();


    }
}
